#include <iostream>
using namespace std;
int main()
{
    int number, total=0;
    cout<<"Enter number: ";
    cin>>number;

    if (number<100||number>=1000)
    cout<<"Error input"<<endl;
    else
    {
        total+=((number/100))*100+(number/10)%10+number%10*10;
        cout<<"Total: "<<total<<endl;
    }

    system("pause");
    return 0;
}
